import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.Node;
import javafx.scene.paint.Color;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;

public class Test extends Application {
	public void start(Stage stage) {
		Button btn=new Button("hello world");
		//btn.setStyle("-fx-border-color: red");
		//btn.setTextFill(Color.RED);
		btn.setStyle("-fx-text-fill:red; -fx-background-color:yellow");

		Pane pane=new Pane();
		pane.setStyle("-fx-border-color:red; -fx-background-color: whitesmoke; -fx-rotate: 45");
		pane.getChildren().add(btn);

		Scene scene=new Scene(pane,200,200);

		stage.setTitle("style test");
		stage.setScene(scene);
		stage.show();
	}
}
